package com.stylefeng.guns.modular.hhtb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.hhtb.model.LogStatedcc;
import com.stylefeng.guns.modular.hhtb.dao.LogStatedccMapper;
import com.stylefeng.guns.modular.hhtb.model.LogStatedccDto;
import com.stylefeng.guns.modular.hhtb.service.ILogStatedccService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 猫币定期流水表 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-27
 */
@Service
public class LogStatedccServiceImpl extends ServiceImpl<LogStatedccMapper, LogStatedcc> implements ILogStatedccService {

    @Autowired
    private LogStatedccMapper logStatedccMapper;
    @Override
    public List<Map<String, Object>> selectLogArtList(Page<Map<String, Object>> page, LogStatedccDto logStatedcc) {
        List<Map<String, Object>> list = logStatedccMapper.selectLogArtList(page,logStatedcc);
        Integer total = logStatedccMapper.selectLogArtListCount(logStatedcc);
        page.setTotal(total);
        return list;
    }
}
